import request from "@/utils/request";
import { AxiosPromise } from "axios";
/**
 * 获取工厂列表
 */
export function getPlantsApi() {
  return request({
    url: "/system/sysOrganization/getList",
    method: "post",
    data: { organizationType: 3 },
  });
}

/**
 * 获取工厂列表
 */
export function getYearsApi() {
  return request({
    url: "/system/dateInfo/getYearList",
    method: "post",
    data: {},
  });
}

/**
 * 获取工作中心列表
 */
export function getWorkShopsApi(id) {
  return request({
    url: "/mes/mesworkshop/getList",
    method: "post",
    data: {
      enabled: 1,
      plantId: id,
    },
  });
}
